﻿@using FCTC_Web.Controllers.Business.BusinessModel
@model DefaultModel


    <div class="con5_left">
    	<div class="con5_left_2">
        	<div class="pinggu_1">
    	 		<div class="pinggu_3"><a href="@Url.Action("Index", "VehicleBusiness")"><img src="images/more2.gif" alt="more" /></a>最新特价车</div>
		  </div>

        </div>
        <div class="con5_left_3">
        	<div class="con5_left_4">
                @if (Model.SpecialOffers != null)
                {

                    for (int i = 0; i < 2 && i < Model.SpecialOffers.Count; i++)
                    {                        
                        <div class="con5_left_4_2">
                            <ul>
                                <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.SpecialOffers[i].ID })">
                                    @if (Model.SpecialOffers[i].Imgs != null && Model.SpecialOffers[i].Imgs.Count > 0)
                                    {
                                        <img src="@Url.Action("ShowImage", "Image", new { id = Model.SpecialOffers[i].Imgs[0].ID })"  width="109" height="82" alt="tuijian" />
                                    }
                                    else
                                    {
                                        <img alt="" src="/images/moren_car.jpg" /> 
                                    }</a></li>
                                <li>年份：@Html.DisplayFor(modelItem => Model.SpecialOffers[i].Year)年</li>
                                <li>车型：@Html.DisplayFor(modelItem => Model.SpecialOffers[i].VehicleStyle)</li>
                                <li>价格：<b>@Html.DisplayFor(modelItem => Model.SpecialOffers[i].Prize)万</b></li>
                                <li>排量：@Html.DisplayFor(modelItem => Model.SpecialOffers[i].DeliveryCapacity)L</li>
                            </ul>
                        </div>   
                    }

                }
            </div>
            <div class="con5_left_5">
            <table width="423" border="0" cellspacing="0" cellpadding="0">
                @if (Model.SpecialOffers != null && Model.SpecialOffers.Count > 2)
                {
                    for (int i = 2; i < 9 && i < Model.SpecialOffers.Count; i++)
                    {            
                    <tr>
                        <td width="160" height="23" class="zuixin_right">
                            ·<a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.SpecialOffers[i].ID })">
                            @Model.SpecialOffers[i].CarBrand-@Model.SpecialOffers[i].VehicleStyle  </a>
                        </td>
                        <td width="50" height="23">@Html.DisplayFor(modelItem => Model.SpecialOffers[i].DeliveryCapacity)L
                        </td>
                        <td width="50" height="23">@Html.DisplayFor(modelItem => Model.SpecialOffers[i].Year)年
                        </td>
                        <td width="75" height="23" class="red">@Html.DisplayFor(modelItem => Model.SpecialOffers[i].Prize)万
                        </td>
                        <td width="70" height="23">@Html.DisplayFor(modelItem => Model.SpecialOffers[i].EnrollmentDate)
                        </td>

                    </tr>
                    <tr>
                        <td height="1" colspan="5" background="/images/zuixin_bj.gif">
                        </td>

                    </tr>
                    }

                }  
            </table>
            </div>
        </div>
    </div>
